﻿using System.Web;
using System.Web.SessionState;
using System;

namespace Marbles.Core.Web.Syndication
{
    public class FeedHandlerEventArgs : EventArgs 
    {

        public IFeed Feed { get { return this._feed; } set { this._feed = value; } }
        public bool Cancel { get { return this._cancel ; } set { this._cancel = value; } }
        public HttpRequest Request { get { return this._context.Request; } }
        public HttpSessionState Session { get { return this._context.Session; } }
        public HttpContext HttpContext { get { return this._context; } }

        private HttpContext _context = null;
        private bool _cancel = false;
        private IFeed _feed = null;

        public FeedHandlerEventArgs(IFeed Feed, HttpContext context)
        {
            this._context = context;
            this._cancel = false;
            this._feed = Feed;
        }

        public FeedHandlerEventArgs(HttpContext context)
        {
            this._context = context;
            this._cancel = false;
            this._feed = null;
        }
    }
}
